﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cash_machine_2012
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        int CardNumber = 0;
        int PinCode = 0;
      
        
        private void button1_Click(object sender, EventArgs e)
        {
            int CardNumbert = Convert.ToInt32(textBox1.Text);
            int PinCodet = Convert.ToInt32(textBox2.Text);
            if (CardNumber == CardNumbert && PinCode == PinCodet)
            {
                Amount amount = new Amount();
                amount.Show();
            }
            else
            {
                MessageBox.Show("Wrong Pin Code or Card Number");
            }
            

            
        }

        private void button2_Click(object sender, EventArgs e)
        {
          
           YourBallance ballance = new YourBallance();
           ballance.Show();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            Form.ActiveForm.Close();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
